package com.example.sxmall.dao.mapper;

import com.example.sxmall.dao.pojo.Orders1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper1 {
    /**
     * 查看款式列表
     * @return
     */
    public List<Orders1> listOrders();

    /**
     * 根据ID查询
     * @param oid
     * @return
     */
    public Orders1 findOrdersById(@Param("oid") Integer oid);

    /**
     * 添加
     * @param orders
     * @return
     */
    public int insertOrders(@Param("orders") Orders1 orders);

    /**
     * 删除
     * @param oid
     * @return
     */
    public int deleteOrders(@Param("oid") int oid);

    /**
     * 动态修改
     * @param orders
     * @return
     */
    public int updateOrders(@Param("orders") Orders1 orders);
}
